package com.lhh.springcloud;

import com.lhh.springcloud.config.RibbonRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@EnableEurekaClient//表示该微服务为eureka-client
@SpringBootApplication
@EnableDiscoveryClient//发现服务
@RibbonClient(name = "vipmember-service-provider", configuration = RibbonRule.class)
//name为我们自己定义的
//若配置了ribbon的config文件，该注解可有可无
public class MemberConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(MemberConsumerApplication.class, args);
    }
}
